package com.iflytek.service.impl;

import com.iflytek.mapper.UserMapper;
import com.iflytek.pojo.User;
import com.iflytek.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    // 一定不要忘记添加注解
    @Autowired
    private UserMapper userMapper;
    // 用户登录实现
    @Override
    public User login(User user) {
        return userMapper.login(user);
    }
}
